import routeComponentName from '@/config/route-component-name'

const factoryRouter = [
  {
    path: '/callbackFactory',
    name: 'callbackFactory',
    component: () => import('@/layout/index.vue'),
    meta: { title: '返厂管理', icon: 'Van', keepAlive: true },
    redirect: '/callbackFactory/callback',
    children: [
      {
        path: 'callback',
        component: () => import('@/views/callback/index.vue'),
        name: 'orderCallback',
        meta: {
          title: '返厂管理',
          keepAlive: true,
          componentName: routeComponentName.returnFactoryManager.returnFactoryManager,
        },
      },
      {
        path: 'cdetail',
        component: () => import('@/views/callback/cdetail/index.vue'),
        name: 'cdetail',
        meta: {
          title: '返厂详细',
          keepAlive: true,
          componentName: routeComponentName.returnFactoryManager.returnFactoryDetail,
        },
        hidden: true,
      },
    ],
  },
]

export default factoryRouter
